home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / WIN_PRO / QDHLP201.ZIP;1 / QDHLPSRC.ZIP / MACROS.QDH < prev    next >
Encoding:
Text File  |  1992-10-05  |  2.3 KB  |  86 lines

  1. //
  2. // This template demonstrates the use of macros in the
  3. // winhelp 3.1 help system
  4. //
  5.  
  6. /topic MACRO_EXAMPLES,WIN30
  7.  
  8.     /title Macro Examples
  9.  
  10.     /para
  11.       text \b,Macros are not available prior to Windows 3.1.
  12.     /endpara
  13.  
  14. /endtopic
  15.  
  16. /topic MACRO_EXAMPLES,WIN31
  17.  
  18.     /title Macro Examples 
  19.     
  20.     /para \sa150 \brdrb \brdrth    \keepn
  21.       /text \b\fs40,Macro Examples {\cf0\i (Win 3.1) }
  22.     /endpara
  23.  
  24.     /para \li600
  25.     Here is where we try the macro link ability of WinHelp 3.1 
  26.     The following are a small sampling of the macros available
  27.     in 3.1 help system. You really must get some of the Windows
  28.     documentation to take full advantage of them.  I suggest \line \line
  29.  
  30.     Microsoft Windows 3.1 \line
  31.     Programmer's Reference \line
  32.     Volume 4 \line
  33.     Resources \line \line
  34.  
  35.     Chapter 15 of this book covers all the macros in detail.  So
  36.     if you want to really do the macro thing pop for the 23 bucks
  37.     and put a little more cash into Bill Gates retirement fund! \line \line
  38.    
  39.     /macrolink Tell Me About it! \line,About() 
  40.     /macrolink Annotate me \line,Annotate()
  41.     /macrolink Go Back \line,Back() 
  42.     /macrolink Define a bookmark \line,BookmarkDefine() 
  43.     /macrolink More bookmarks \line,BookmarkMore() 
  44.     /macrolink Show Browse Buttons \line,BrowseButtons() 
  45.     /macrolink Add Time Button \line,CreateButton("clock_btn","&Time","ExecProgram(`clock',0)") 
  46.     /macrolink Time now is notepad \line,ChangeButtonBinding("clock_btn","ExecProgram(`notepad',0)") 
  47.     /macrolink Destroy Time Button \line,DestroyButton("clock_btn")
  48.     /macrolink Contents... \line,Contents() 
  49.     /macrolink Copy Me \line,CopyDialog() 
  50.     /macrolink Copy topic to clipboard \line,CopyTopic() 
  51.  
  52.     /endpara
  53.  
  54. /endtopic
  55.  
  56. //
  57. // Tabs
  58. //
  59.  
  60. /topic TAB_EXAMPLES
  61.  
  62.     /title Tab Examples
  63.     /keywords Tabs;Examples
  64.  
  65.     /para \sa150 \brdrb \brdrth
  66.     /text \b\fs40,Tab Examples
  67.     /endpara
  68.  
  69.     /para \li400 \ri400 \sa150 \box \brdrsh
  70.     This will be the text for the tabs example.
  71.     We will put some tabs here just to show you how to do it.
  72.     /endpara
  73.  
  74.     /para \li400\tqr\tx2700\tqc\tx4000
  75.     /text \ul,Left \tab Right \tab Centered
  76.     /newline
  77.     1111 \tab 2222 \tab 3333
  78.     /newline
  79.     4444 \tab 5555 \tab 6666
  80.     /newline
  81.     7777 \tab 8888 \tab 9999
  82.     /endpara
  83.  
  84.  
  85. /endtopic
  86.